package com.yue.okhttp.simple_example;

import org.junit.Test;

import java.io.IOException;

/**
 * Created by qiuyang on 21/02/2017.
 */
public class Main {
    private GetExample getExample = new GetExample();
    private PostExample postExample = new PostExample();

    @Test
    public void getExampleTest() throws IOException {
        System.out.println(getExample.run("http://www.baidu.com"));
    }

    @Test
    public void postExampleTest() throws IOException {
        postExample.post("http://localhost:48080/apiv1/images", "{\"vectorMapId\":69,\"expire\":\"2017-02-22\"}");
    }
}
